/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package paket;

/**
 *
 * @author Yener
 */
public class Kopyalama {

    public static  void multiArrayCopy(Hero[][] source, Hero[][] destination) {
        for (int a = 0; a < source.length; a++) {
            System.arraycopy(source[a], 0, destination[a], 0, source[a].length);
        }

    }

    public static paket.Hero[][] cloneArray(paket.Hero[][] source) {
        paket.Hero[][] destination = new paket.Hero[BoardPanel.ROWS][BoardPanel.COLS];
        for (int a = 0; a < source.length; a++) {
            System.arraycopy(source[a], 0, destination[a], 0, source[a].length);
        }
        return destination;
    }
}
